<%--
  Created by IntelliJ IDEA.
  User: 86135
  Date: 2021/5/18
  Time: 17:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>华子图书馆</title>
    <%
        //获取项目的根路径
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<%=basePath%>/layui/css/layui.css"  media="all">
    <script src="<%=basePath%>/layui/layui.js" charset="utf-8"></script>
    <link rel="shortcut icon" href="#"/>
    <script type="text/javascript" src="<%=basePath%>/jquery-1.12.4.js"></script>
    <style>
        iframe{
            border: none;
        }
    </style>
<%--    <link rel="icon" type="image/x-icon" href="huazilogo.ico"/>--%>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"><img src="<%=basePath%>/cx/img/huazi.png" alt="" width="50px" height="50px">华子图书馆</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    ${requestScope.deng}
                </a>
                <dl class="layui-nav-child">

                    <dd><a href="<%=basePath%>/LibaryServlet?password=${requestScope.password}&deng=${requestScope.deng}&Uppad=mima">修改密码</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="<%=basePath%>/LibaryServlet?submit=tup" target="mainFrame">书籍信息</a>
                </li>
                <li class="layui-nav-item"><a href="<%=basePath%>LibraryServlet" target="mainFrame">用户信息</a>
                </li>
                <li class="layui-nav-item"><a href="<%=basePath%>/cx/Inserts.jsp" target="mainFrame">书籍入库</a></li>
                <li class="layui-nav-item"><a href="javascript:;" >失物招领</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<%=basePath%>BookServlet?tp=sel" target="mainFrame">查询失物招领</a></dd>
                        <dd><a href="<%=basePath%>/gq/jsp/lostInsert.jsp" target="mainFrame">添加失物信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="<%=basePath%>/text.jsp" target="mainFrame">借还书登记</a>
                </li>
                <li class="layui-nav-item"><a href="javascript:;">捐赠记录</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<%=basePath%>/gq/jsp/insert.jsp" target="mainFrame">添加捐赠记录</a></dd>
                        <dd><a href="<%=basePath%>InsertServlet" target="mainFrame">查询捐赠记录</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
<!-- 内容主体区域 -->
<div style="padding: 15px;">
    <%--            查询表单--%>
        <iframe name="mainFrame" src="<%=basePath%>/LibaryServlet?submit=tup" width="100%" height="1000px"></iframe>
</div>
    </div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
       <h2>华子图书馆</h2>
    </div>
</div>
</body>
</html>
